package com.audaque.springboot.foshanupload.web.raspcloud.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

  import java.time.*;
  import com.fasterxml.jackson.annotation.JsonFormat;
  import org.springframework.format.annotation.DateTimeFormat;
 import com.baomidou.mybatisplus.annotation.*;

import io.swagger.v3.oas.annotations.media.Schema;


import lombok.*;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户组
 * </p>
 *
 * @author chinaben
 * @since 2025-07-03
 */
@Data
@Getter
@Setter
@TableName("user_group")
@Schema(name = "UserGroup", description = "用户组")
public class UserGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @Schema(description = "名称")
    private String name;


    @Schema(description = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;


    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Schema(description = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;


    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


    @Schema(description = "备注")
    private String remark;


    @Schema(description = "删除标志（0正常 1停用）")
    @TableLogic
    private Boolean delFlag;


    @Schema(description = "是否启用（0禁用 1启用）")
    private Boolean enableYn;

}
